Set

Function

This API is used to set parameter for Event Settings(cloud dedicated) > Notification .

Request Message

See Event Settings(cloud dedicated) > Notification > Range > Parameter Description > Table 1 for parameter description.

Sample:

POST /API/Event/Notification/Set HTTP/1.1
{
    "version": "1.0",
    "data": {
        "channel_info": {
            "CH1": {
                "notification_settings": {
                    "URL1": {
                        "enable": true,
                        "push_way": "HTTP",
                        "trigger_interval": 30,
                        "method": "POST",
                        "url": "dasdasd",
                        "username": "adsa",
                        "password_empty": true,
                        "auth_enable": true,
                        "base_enc_password": {
                            "seq": 0,
                            "peer_key": "0F4guo1uIgetjXabr4L0B38y89sRlNibG7JeDdaLlCk8=",
                            "cipher": "0+iFinQZpjwTb57XXVB84dkFJefVOhJ78402CB84bUBrn1FY="
                        }
                    },
                    "URL2": {
                        "enable": false,
                        "push_way": "HTTP",
                        "trigger_interval": 30,
                        "method": "POST",
                        "url": "",
                        "username": "",
                        "password_empty": true,
                        "auth_enable": false
                    },
                    "URL3": {
                        "enable": false,
                        "push_way": "HTTP",
                        "trigger_interval": 30,
                        "method": "POST",
                        "url": "",
                        "username": "",
                        "password_empty": true,
                        "auth_enable": false
                    }
                },
                "chn_index": "CH1"
            }
        },
        "channel": "CH1",
        "ability": "HumanVehicle"
    }
}

Response Message

Sampel:

HTTP/1.1 200 OK
Content-Type: application/json
{
	"result": "success",
	"data": {}
}

Error Code

See Response Messages Body and Common error_code for more information.